package cn.sendto.rowmapper.impl;

import java.sql.ResultSet;
import java.sql.SQLException;

import cn.sendto.model.ParkInfoModel;
import cn.sendto.rowmapper.IRowMapper;

public class ParkInfoMapper implements IRowMapper<ParkInfoModel>{

	@Override
	public ParkInfoModel rowMapper(ResultSet rs) throws SQLException {
		ParkInfoModel pim = new ParkInfoModel();
		pim.setParkId(rs.getInt("parkid"));
		pim.setParkNum(rs.getString("parknum"));
		pim.setParkType(rs.getInt("parktype"));
		pim.setParkPosition(rs.getString("parkposition"));
		return pim;
	}

}
